package service.Impl;

import dao.Impl.SelectUserImpl;
import dao.InsertUsers;
import dao.SelectUserDao;
import pojo.User;
import service.UserSelectService;

import java.util.List;

public class UserSelectServiceImpl implements UserSelectService {
    @Override
    public List<User> selectUser(User user) {
        SelectUserDao selectUserDao=new SelectUserImpl();
        return selectUserDao.selectUser(user);

    }

    @Override
    public User selectUserById(int id) {
        SelectUserDao selectUserDao=new SelectUserImpl();
        return selectUserDao.selectUserById(id);
    }
}
